package lab02.test37;

public class Graduate extends Student {
    public Graduate(){}
    public Graduate(String name,String sort,double chemical,double math,double Chinese){
        super(name,sort,chemical,math,Chinese);
    }
    public void grade(){
    double a = super.average(math,chemical,Chinese);
    if(a>=80) {
        System.out.println("能拿到学位证书");
    }else{
        System.out.println("不能拿到证书");
    }
    }
}
